Component org.nuxeo.ecm.platform.comment.service.RelationContrib
In bundle org.nuxeo.ecm.platform.comment
Documentation
This component defines the relation-related config for comments.
Contributions
- org.nuxeo.ecm.platform.comment.service.RelationContrib--config
- org.nuxeo.ecm.platform.comment.service.RelationContrib--doctype
- org.nuxeo.ecm.platform.comment.service.RelationContrib--resourceadapters
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.service.RelationContrib">
<documentation>
This component defines the relation-related config for comments.
</documentation>
<extension target="org.nuxeo.ecm.platform.comment.service.CommentService"
point="config">
<config>
<converterClass>
org.nuxeo.ecm.platform.comment.impl.CommentConverterImpl
</converterClass>
<graphName>documentComments</graphName>
<!-- XXX AT: these namespaces should have an ending slash -->
<commentNamespace>http://www.nuxeo.org/comments/uid</commentNamespace>
<documentNamespace>http://www.nuxeo.org/document/uid</documentNamespace>
<predicateNamespace>
http://www.nuxeo.org/predicates/isCommentFor
</predicateNamespace>
</config>
</extension>
<!-- relation adapters -->
<extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
point="resourceadapters">
<!-- XXX AT: this namespace should have an ending slash -->
<adapter namespace="http://www.nuxeo.org/comments/uid"
class="org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter" />
</extension>
<extension target="org.nuxeo.ecm.core.schema.TypeService"
point="doctype">
<doctype name="CommentRelation" extends="Relation">
<facet name="HiddenInNavigation" />
</doctype>
</extension>
</component>